home *** CD-ROM | disk | FTP | other *** search
- Path: news.slip.net!usenet
- From: mavrick@slip.net (Mavrick)
- Newsgroups: comp.lang.c++
- Subject: Trapping Ctrl-Alt-Del
- Date: Sun, 14 Apr 1996 09:45:00 GMT
- Organization: Slip.Net
- Message-ID: <4kqh9r$fap@ms.slip.net>
- NNTP-Posting-Host: sf-pm3-26-90.dialup.slip.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- I am running a network of 50 pcs in a class room where students always
- manage to bypass the provided computer curriculum program by rebooting
- (Ctrl-Alt-Del) their way out, and fool around the hard disks. Some
- also found out that Ctrl-C or Ctrl-break would do the same trick. I
- need to fine tune the menu program I wrote 2 years ago and implement
- a keyboard trapping algorithm to weed out the Ctrl-Alt-Del and Ctrl-C
- /Ctrl-break. Any other keys I can easily trap by scanning for their
- scan codes; however, those 3 combos work differrently.
-
- Could someone write me a sample short program in C / C++ (I'm using
- Borland C 5.0) that would do the trick. Something as simple as
- printing 'Hello' every time any of those combos are pressed. Perhaps
- I could return the favor by inviting you for lunch should you ever
- come across the Bay Area (Northern California).
-
- Thank You
- Marvick W C
-
- mavrick@slip.net
-
-